<template>
  <div class="p20">
    <h1 class="flex p20 f20">详情页</h1>
    <h2>接口调用及使用</h2>
    <ul>
      <li v-for="(item,index) in list" :key="index">{{item.id}}:{{item.address}}</li>
    </ul>
  </div>
</template>

<script setup>
import {ref} from "vue";
import {getData} from "../../api/module";

let list = ref([])
getData().then(res =>{
  list.value = res.data.list
})
</script>

<style scoped>

</style>
